//
//  ListCellViewModel.m
//  RACDemo
//
//  Created by XFB on 2018/8/8.
//  Copyright © 2018年 ZhouCheng. All rights reserved.
//

#import "ListCellViewModel.h"
#import "UIImageView+WebCache.h"
#import "RecommendListItem.h"
#import "RecommendListCell.h"

@implementation ListCellViewModel

- (void)bindViewModel:(UIView *)bindView
{
    RecommendListCell *cell = (RecommendListItem *)bindView;
    [cell.iconImageView sd_setImageWithURL:[NSURL URLWithString:_item.courseImage]];
    cell.nameView.text = _item.courseName;
    [cell.numView setTitle:_item.studentNum forState:UIControlStateNormal];
}

@end
